require(["../../scripts/conf/config.js"], function () {
    require(["jquery", "swiper", "skyBgConf", "skyBg"], function (
        $,
        Swiper
    ) {
        var mySwiper = new Swiper(".swiper-container", {
            direction: "vertical", // 垂直切换选项
            loop: true, // 循环模式选项
            parallax: true, //视差 ，在背景图是一张长图的时候有效果
            // 如果需要分页器
            pagination: {
                el: ".swiper-pagination"
            },

            // 如果需要前进后退按钮
            navigation: {
                nextEl: ".swiper-button-next",
                prevEl: ".swiper-button-prev"
            },

            // 如果需要滚动条
            scrollbar: {
                el: ".swiper-scrollbar"
            }
        });
    });
});